package cn.springcloud.fix.common.core.taobao.api;

import java.util.Map;

public abstract class BaseTaobaoRequest<T extends TaobaoResponse> implements TaobaoRequest<T> {

    protected Map<String, String> headerMap; // HTTP请求头参数
    protected TaobaoHashMap udfParams; // 自定义表单参数
    protected Long timestamp; // 请求时间戳
    protected String targetAppKey; // 请求目标AppKey
    protected String topMixParams; // 指定哪个入参是混淆参数
    protected String session; // 使用批量API调用时，每个API可以使用不同的授权码，普通API调用忽略此属性
    protected int order; // 标示该API在批量API调用中的顺序

    @Override
    public Map<String, String> getHeaderMap() {
        return headerMap;
    }

    public void setHeaderMap(Map<String, String> headerMap) {
        this.headerMap = headerMap;
    }

    public TaobaoHashMap getUdfParams() {
        return udfParams;
    }

    public void setUdfParams(TaobaoHashMap udfParams) {
        this.udfParams = udfParams;
    }

    @Override
    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String getTargetAppKey() {
        return targetAppKey;
    }

    public void setTargetAppKey(String targetAppKey) {
        this.targetAppKey = targetAppKey;
    }

    public String getTopMixParams() {
        return topMixParams;
    }

    public void setTopMixParams(String topMixParams) {
        this.topMixParams = topMixParams;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }
}
